package com.hncgy.xzf.jdapi.domain.product.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
 * <p>
 * 秒杀商品关联表
 * </p>
 *
 * @author 不会代码的蜡笔
 * @since 2025-11-04
 */
@Data
@Schema(name = "PromotionProducts对象", description = "秒杀商品关联表")
public class PromotionProducts implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "促销活动ID，外键")
    private Integer promotionId;

    @Schema(description = "商品ID，外键")
    private Integer productId;

    @Schema(description = "SKU ID，外键")
    private Integer skuId;

    @Schema(description = "秒杀价格")
    private BigDecimal seckillPrice;

    @Schema(description = "秒杀库存")
    private Integer seckillStock;

    @Schema(description = "每人限购数量")
    private Integer limitPerUser;

    @Schema(description = "已售数量")
    private Integer salesCount;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
